﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using SalePartial.Model;

namespace SalePartial.IDAL
{
    public interface IXPCompanyProduct
    {
        int Delete(Guid ProductID);

        int DeleteByCompanyID(Guid CompanyID);

        int DeleteDynamic(string v_whereCondition);

        int Insert(XPCompanyProductInfo info);

        DataSet SelectAll();

        DataSet SelectByCompanyID(Guid CompanyID);

        DataSet SelectDynamic(string v_whereCondition, string v_orderByExpression);

        DataSet SelectPaged();

        SqlDataReader SelectReader(Guid ProductID);

        SqlDataReader SelectReaderByCompanyID(Guid CompanyID);

        DataSet SelectSingle(Guid ProductID);

        int Update(XPCompanyProductInfo info);

    }
}
